{extend name="property/public/insidePageBase" /}
{block name="title"}编辑房间标签{/block}
{block name="body"}
<div class="layuimini-container">
    <div class="layuimini-main">
        <form class="layui-form  layui-form-pane">
            <div class="layui-form-item">
                <label class="layui-form-label">房间信息</label>
                <div class="layui-input-block">
                    <input type="text" disabled value="{$info['full_room_name']??''}"  autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-col-xs6">
                    <div class="layui-form-item">
                        <label class="layui-form-label indispensable">业主姓名</label>
                        <div class="layui-input-block">
                            <input type="text" disabled value="{$info['username']??''}" autocomplete="off" placeholder="请输入业主姓名" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs6">
                    <div class="layui-form-item">
                        <label class="layui-form-label indispensable">联系方式</label>
                        <div class="layui-input-block">
                            <input type="text" disabled value="{$info['mobile']??''}" autocomplete="off" placeholder="请输入联系方式" class="layui-input">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-col-xs6">
                    <div class="layui-form-item">
                        <label class="layui-form-label indispensable">身份类型</label>
                        <div class="layui-input-block">
                            <select name="owner_type"  lay-search>
                                <option value="">--请选择--</option>
                                {foreach $ownerTypeData as $k=>$v}
                                <option value="{$k}" {:isset($info['owner_type']) ? $info['owner_type'] == $k ? 'selected' : '' : ''}>{$v}</option>
                                {/foreach}
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs6">
                    <div class="layui-form-item">
                        <label class="layui-form-label indispensable">审核状态</label>
                        <div class="layui-input-block">
                            <select disabled>
                                <option value="">--请选择--</option>
                                {foreach $auditStatusData as $k=>$v}
                                <option value="{$k}" {:isset($info['audit_status']) ? $info['audit_status'] == $k ? 'selected' : '' : ''}>{$v}</option>
                                {/foreach}
                            </select>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label required">面部照片</label>
                <div class="layui-input-inline">
                    <input type="text" name="mugshot_url" value="{$info['mugshot_url']??''}" placeholder="可为空/用于人验识别门照" id="mugshot_url" class="layui-input">
                </div>
                <img src="{$info['mugshot_url']??''}" class="checkPictureByImg mugshot_url"  style="width: 40px;height: 40px;">
                <div class="layui-input-inline layui-btn-container" style="width: auto;">
                    <button type="button" class="layui-btn layui-btn-primary uploadImg" lay-data="{field: 'mugshot_url',data:{dir:'room/owner', field:'mugshot_url'}}">
                        <i class="layui-icon">&#xe67c;</i>
                    </button>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">备注说明</label>
                <div class="layui-input-block">
                    <textarea  name="remark" placeholder="请输入备注说明"  class="layui-textarea">{$info['remark']??''}</textarea>
                </div>
            </div>
            <div class="layui-form-item layui-hide">
                <button class="layui-btn" type="button" lay-submit lay-filter="submitBtn" id="submitBtn">提交</button>
            </div>
        </form>
    </div>
</div>
{/block}
{block name="js"}
{__block__}
<script>
    layui.use(['form', 'layer'], function () {
        var form = layui.form,layer = layui.layer, $ = layui.$;
        $('.uploadImg').selectImages({
            confirm:function(res,elem,data) {
                $('#' + data.field).val(res[0].src);
                $('.' + data.field).attr('src',res[0].src)
            }
        });
    })
</script>
{/block}